#ifndef MATRIXWIDGET_H
#define MATRIXWIDGET_H

#include <QWidget>
#include "mgraph.h"
class TraverseThread;
namespace Ui {
class MatrixWidget;
}

class MatrixWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MatrixWidget(QWidget *parent = nullptr);
    ~MatrixWidget();
    void paintEvent(QPaintEvent *event);

private slots:
    void on_pushButton_clicked();

    void on_addArcBtn_clicked();

    void on_delArcBtn_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::MatrixWidget *ui;
    MGraph<string> *mg;
    TraverseThread *tt;
};

#endif // MATRIXWIDGET_H
